package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysThesauriWordReferenceMapper;
import com.ruoyi.system.domain.SysThesauriWordReference;
import com.ruoyi.system.service.ISysThesauriWordReferenceService;

/**
 * 叙词引用关系Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-08-24
 */
@Service
public class SysThesauriWordReferenceServiceImpl implements ISysThesauriWordReferenceService 
{
    @Autowired
    private SysThesauriWordReferenceMapper sysThesauriWordReferenceMapper;

    /**
     * 查询叙词引用关系
     * 
     * @param id 叙词引用关系主键
     * @return 叙词引用关系
     */
    @Override
    public SysThesauriWordReference selectSysThesauriWordReferenceById(Long id)
    {
        return sysThesauriWordReferenceMapper.selectSysThesauriWordReferenceById(id);
    }

    /**
     * 查询叙词引用关系列表
     * 
     * @param sysThesauriWordReference 叙词引用关系
     * @return 叙词引用关系
     */
    @Override
    public List<SysThesauriWordReference> selectSysThesauriWordReferenceList(SysThesauriWordReference sysThesauriWordReference)
    {
        return sysThesauriWordReferenceMapper.selectSysThesauriWordReferenceList(sysThesauriWordReference);
    }

    /**
     * 新增叙词引用关系
     * 
     * @param sysThesauriWordReference 叙词引用关系
     * @return 结果
     */
    @Override
    public int insertSysThesauriWordReference(SysThesauriWordReference sysThesauriWordReference)
    {
        return sysThesauriWordReferenceMapper.insertSysThesauriWordReference(sysThesauriWordReference);
    }

    /**
     * 修改叙词引用关系
     * 
     * @param sysThesauriWordReference 叙词引用关系
     * @return 结果
     */
    @Override
    public int updateSysThesauriWordReference(SysThesauriWordReference sysThesauriWordReference)
    {
        return sysThesauriWordReferenceMapper.updateSysThesauriWordReference(sysThesauriWordReference);
    }

    /**
     * 批量删除叙词引用关系
     * 
     * @param ids 需要删除的叙词引用关系主键
     * @return 结果
     */
    @Override
    public int deleteSysThesauriWordReferenceByIds(Long[] ids)
    {
        return sysThesauriWordReferenceMapper.deleteSysThesauriWordReferenceByIds(ids);
    }

    /**
     * 删除叙词引用关系信息
     * 
     * @param id 叙词引用关系主键
     * @return 结果
     */
    @Override
    public int deleteSysThesauriWordReferenceById(Long id)
    {
        return sysThesauriWordReferenceMapper.deleteSysThesauriWordReferenceById(id);
    }
}
